import request from "@/utils/request";

//备料信息的添加
export const addExtraService = (data) => {
  return request.post("/extra", data);
};

//备料信息的删除
export const delExtraService = (data) => {
  return request.delete("/extra", { params: data });
};

//备料备注信息的修改
export const modifyExtraInfoService = (data) => {
  return request.put("/extra/info", data);
};

//备料信息的修改
export const modifyExtraService = (data) => {
  return request.put("/extra", data);
};

//备料信息的分页查询
export const getExtraListService = (data) => {
  return request.get("/extra/page", { params: data });
};

// 根据id查询备料信息
export const getExtraById = (id) => {
  return request.get("/extra", { params: { id } });
};

//根据rfid查找备料的位置
export const showPlaceService = (data) => {
  return request.post("/extra/show", data);
};

//备料信息上传
export const uploadExtraService = (file) => {
  return request.post("/extra/upload",file);
}
